package com.mobogenie.blur;


import android.graphics.Color;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.ListView;


public class MainActivity extends AppCompatActivity {

    private ListView mListView;
    private DownloadManagerRecommendedAdapter mAdapter;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        initViews();
    }

    private void initViews() {
        mListView = (ListView) findViewById(R.id.main_list);
        mListView.setCacheColorHint(Color.TRANSPARENT);
        mAdapter = new DownloadManagerRecommendedAdapter(this);
        mListView.setAdapter(mAdapter);

        DownloadManagerRecommendedView recommendedView = new DownloadManagerRecommendedView(this);
        mListView.addFooterView(recommendedView);
    }
}
